/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.person.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_person_farmmanagementEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}person_farmmanagement", alias="a", columns={
		@Column(name="id", attrName="id", label="记录编号", isPK=true),
		@Column(name="uid", attrName="uid", label="用户编号"),
		@Column(name="fid", attrName="fid", label="农田编号"),
		@Column(name="fsize", attrName="fsize", label="已购农田面积"),
	}, orderBy="a.id DESC"
)
public class PersonFarmmanagement extends DataEntity<PersonFarmmanagement> {
	
	private static final long serialVersionUID = 1L;
	private String uid;		// 用户编号
	private String fid;		// 农田编号
	private Double fsize;		// 已购农田面积
	
	public PersonFarmmanagement() {
		this(null);
	}

	public PersonFarmmanagement(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="用户编号长度不能超过 255 个字符")
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}
	
	@Length(min=0, max=255, message="农田编号长度不能超过 255 个字符")
	public String getFid() {
		return fid;
	}

	public void setFid(String fid) {
		this.fid = fid;
	}
	
	public Double getFsize() {
		return fsize;
	}

	public void setFsize(Double fsize) {
		this.fsize = fsize;
	}
	
}